<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/clienttracelist.js"></script>
</head>
<body>
<table id="clienttracelist_datagrid"></table>
<div id="tb">

    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">新增记录</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑记录</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="remove">删除记录</a>
    <a href="#" id="changeState_btn" class="easyui-linkbutton" data-options="iconCls:'icon-switch',plain:true"
       data-cmd="changeResult">标记结果</a>
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
    <br/>
    记录日期：
    <input name="beginTime" class="easyui-datebox" style="width: 120px">~
    <input name="endTime" class="easyui-datebox" style="width: 120px">
    模糊搜索：
    <input name="clientName" class="easyui-textbox" prompt="输入客户" style="width: 80px">
    <input name="empName" class="easyui-textbox" prompt="创建人" style="width: 80px">
    <input name="subjectName" class="easyui-textbox" prompt="记录主题" style="width: 80px">
    实施方式：
    <input name="planTypeId" class="easyui-combobox" prompt="请选择" fit="true" style="width: 120px"
           data-options="textField:'name',valueField:'id',panelHeight:'auto',
                                url:'/dictionaries/getPlanDetails.do'">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="query"></a>
</div>
<div id="client_dialog" draggable="false" modal="false">
    <table id="client_datagrid">
        <div id="client_btn">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true"
               data-cmd="contain">确定</a>
        </div>
    </table>
</div>
<div id="result_dialog">
    <form id="result_form" method="post">
        <table align="center" style="margin: 10px;">
            <tbody>
            <tr>
                <th>记录执行结果</th>
            </tr>
            <tr>
                <td>记录编号：<input type="text" name="id" readonly="true"></td>
            </tr>
            <tr>
                <td>记录主题：<input type="text" name="planSubject" readonly="true"></td>
            </tr>
            <tr>
                <td>
                    执行效果:
                    <select class="easyui-combobox" data-options="panelHeight:true,width:80" name="traceResult">
                        <option value="3">优</option>
                        <option value="2">中</option>
                        <option value="1">差</option>
                    </select>
                </td>
            </tr>
            </tbody>
            <div id="result_btn">
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true"
                   data-cmd="resultUpdate">保存</a>
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true"
                   data-cmd="resultCancel">取消</a>
            </div>
        </table>
    </form>
</div>
<div id="clienttracelist_dialog">
    <form id="clienttracelist_form" method="post">
        <input id="clienttracelistId" name="id" type="hidden">
        <table align="center" style="margin: 15px;">
            <tr>
                <th colspan="5">
                    <center>客户跟进记录</center>
                </th>
            </tr>
            <br/>
            <tr>
                <td>客户：</td>
                <input type="hidden" id="potentialClientId" name="potentialClient.id">
                <td><input type="text" id="potentialClientName" name="potentialClient.name" class="easyui-textbox" disabled="true"></td>
                <td><a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" data-cmd="clientDialog">查询客户</a>
                </td>
            </tr>
            <tr>
                <td>记录时间：</td>
                <td><input type="text" name="planTime" class="easyui-datebox"></td>
                <td>记录主题：</td>
                <td><input type="text" name="planSubject" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>实施方式：</td>
                <td><input type="text" name="planType.id" class="easyui-combobox"
                           data-options="textField:'name',valueField:'id',panelHeight:'auto',
                                url:'/dictionaries/getPlanDetails.do'">
                </td>
                <td>备注：</td>
                <td><input type="text" name="remark" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td colspan="5">
                    <center>记录详情</center>
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    <center><textarea name="planDetail" cols="70" rows="4"
                                      style="margin: 0px; height: 59px; width: 420px;"></textarea></center>
                </td>
            </tr>

            <div id="btn">
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true"
                   data-cmd="save">保存</a>
                <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
            </div>
        </table>
    </form>
</div>
</body>
</html>
